package field_method05;

public class BookTest {
    public static void main(String[] args) {
        Book book=new Book();

        String info=book.getBookInfo();
        System.out.println(info);
        String bookNameSetBefore=book.getBookName();
        System.out.println("------------------------------");
        System.out.println(bookNameSetBefore);
        book.setBookName("红楼梦");
        String bookNameSetAfter=book.getBookName();
        System.out.println(bookNameSetAfter);
        System.out.println("-------------------------------");
        book.setPrice(300);
        book.setAuthor("曹雪芹");
        book.setPublisher("新华社出版");
        System.out.println(book.getBookInfo());
    }
}
